Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix case when no language given for suggesting gfm code block langs #64

Closed

Conversation

cosmicexplorer
Copy link
Contributor

Three things:

  1. Previously, if no language was given for a gfm code block (so just three backticks open/close), markdown-gfm-parse-buffer-for-languages would error out because the (match-string-no-properties 2) call would return nil. This fixes that.
  2. Adds a ? to the second newline in a block, allowing empty code blocks (which github allows).
  3. Allows using C-g to quit out of the completing-read for a language, and returns an empty string, so you can create code blocks with no specified language without having to backspace.

@jrblevin
Copy link
Owner

jrblevin commented Jan 6, 2016

Done--thanks!

@jrblevin jrblevin closed this Jan 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants